<?php

/**
 * Description of RoleSelect
 *
 * @author    Mon Zafra <monzee at gmail>
 * @copyright (c)2009 Mon Zafra
 * @license   http://monzee.wordpress.com/license New BSD
 * @version   $Id: RoleEdit.php 38 2009-02-18 17:12:39Z monzee $
 */
class Admin_Form_RoleEdit extends Zend_Form
{
    public function init()
    {
        $this->setMethod('post')
            ->setDisableLoadDefaultDecorators(true)

            ->addElement('select', 'roles', array(
                'label' => 'Select a role',
                'multiOptions' => array('placeholder1', 'placeholder2'),))

            ->addElement('text', 'description', array(
                'label' => 'Description', 'id' => 'newDesc', 'class' => 'text'))

            ->addElement('multicheckbox', 'parents', array(
                'label' => 'Set parent roles',
                'multiOptions' => array('role1', 'role2', 'role3', 'role4'),))

            ->addElement('submit', 'select', array(
                'label' => 'Select',))
        
            ->addElement('submit', 'commit', array(
                'label' => 'Save changes',))

            ->addElement('submit', 'delete', array(
                'label' => 'Delete this role',))
        ;
    }

}
